package com.zhxy.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_student")//
public class Student implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;//主键
    private String stuNo;//学号
    private String name; //姓名
    private String password; //密码
    private String sex; //性别
    private String phone;  //电话
    private String cardId; //身份证
    private Integer clazzId;//班级编号


    @TableField(exist = false)
    private Clazz clazz; //班级信息
}
